package com.bootdo.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.system.dao.UserpicDao;
import com.bootdo.system.domain.UserpicDO;
import com.bootdo.system.service.UserpicService;



@Service
public class UserpicServiceImpl implements UserpicService {
	@Autowired
	private UserpicDao userpicDao;
	
	@Override
	public UserpicDO get(Integer id){
		return userpicDao.get(id);
	}
	
	@Override
	public List<UserpicDO> list(Map<String, Object> map){
		return userpicDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return userpicDao.count(map);
	}
	
	@Override
	public int save(UserpicDO userpic){
		return userpicDao.save(userpic);
	}
	
	@Override
	public int update(UserpicDO userpic){
		return userpicDao.update(userpic);
	}
	
	@Override
	public int remove(Integer id){
		return userpicDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return userpicDao.batchRemove(ids);
	}

	@Override
	public UserpicDO getUserpicByUserId(Long userId) {
		return userpicDao.getUserpicByUserId(userId);
	}

	@Override
	public String getUrl(Long userId) {
		// TODO Auto-generated method stub
		return userpicDao.getUrl(userId);
	}
	
}
